import Vue from 'vue'
import VueRouter from 'vue-router'
import monitor from '../views/monitor/index.vue'
import index from '../views/index/index.vue'

Vue.use(VueRouter)

const routes = [
    {
    path: '/',
    redirect: "/index"
  },
  {
    path: '/index',
    name: 'index',
    component: index
  },
  {
    path: '/monitor',
    name: 'monitor',
    component: monitor
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
